projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8b4083
)
listbase: Fix an off-by-one error
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 6 Jun 2020 04:15:50 +0000
(
00:15
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 6 Jun 2020 04:15:50 +0000
(
00:15
-0400)
We were accidentally cutting off the set one-too-early,
which showed up as single clicks not selecting an item
anymore.
gtk/gtklistbase.c
patch
|
blob
|
history
diff --git
a/gtk/gtklistbase.c
b/gtk/gtklistbase.c
index 936b874ac50cb4f1d072e6e2bcd912dd422f6c43..250e7b3619fedf92021c517c6b822c4de2c00316 100644
(file)
--- a/
gtk/gtklistbase.c
+++ b/
gtk/gtklistbase.c
@@
-1355,7
+1355,7
@@
range_cb (guint position,
{
GtkSet *set = data;
- gtk_set_find_range (set, position, gtk_set_get_max (set), start, n_items, selected);
+ gtk_set_find_range (set, position, gtk_set_get_max (set)
+ 1
, start, n_items, selected);
}
static void